package com.babyqiao.wallpaper.manager.service;

import com.babyqiao.wallpaper.manager.entity.WallpaperAlbumPic;
import com.babyqiao.wallpaper.manager.controller.dto.AlbumPicQuery;
import com.babyqiao.wallpaper.manager.entity.vo.AlbumPicResVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author qinglongzhai
 * @date 2020/12/10
 */
public interface AlbumPicService extends IService<WallpaperAlbumPic> {
    /**
     * @Author qinglongZhai
     * @Date 2020/12/10
     * * @param albumPicQuery:
     * * @return: com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<com.babyqiao.wallpaper.manager.entity.AlbumPic>
     */

    public QueryWrapper<WallpaperAlbumPic> addSelectCondition(AlbumPicQuery albumPicQuery);

    /**
     * 多表带条件带分页查询
     *
     * @param albumPicQuery: * @return: java.util.List<com.babyqiao.wallpaper.manager.entity.vo.AlbumPicResVO>
     * @Author qinglongZhai
     * @Date 2020/12/10
     * * @param page:
     */


    public Page<AlbumPicResVO> multipleTablesAndCondition(Page<AlbumPicResVO> page, AlbumPicQuery albumPicQuery);


    /**
     * @param state: * @return: com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper<com.babyqiao.wallpaper.manager.entity.Album>
     * @Author qinglongZhai
     * @Date 2020/12/11
     * * @param id:
     */

    public UpdateWrapper<WallpaperAlbumPic> addUpdataCondition(String id, Integer state);
}









